﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AJAX_learning
{
	public partial class Resp : System.Web.UI.Page
	{
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);
			
			var pg = this.PreviousPage as Req;
			if (pg != null)
			{
				var cookie = Request.Cookies.Get("LastBrowser");
				this.Label1.Text = pg.Header.Title + "<br/>" + pg.FirstNameTextBox.Text;
				if (cookie!=null)
				{
					this.Label1.Text += "<br/><br/>" + cookie.Value;
				}
			}
			else
			{
				Response.Redirect("~/Req.aspx");
			}
		}
	}
}